package com.xbongbong.pro.competitor.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author: yingjf
 * @date: 2022/8/25 19:30
 * @description:
 */
@Getter
@Setter
@ToString
public class CompetitorAnalysisListDTO extends BaseDTO {
    /**
     * 机会id
     */
    @NotNull(message = "dto.msg.competitor.id.NotNull")
    private Long dataId;
    /**
     * 页数
     */
    @NotNull(message = "{dto.msg.competitor.page.NotNull}")
    private Integer page;
    /**
     * 页面大小
     */
    @NotNull(message = "{dto.msg.competitor.pageSize.NotNull}")
    private Integer pageSize;
    /**
     * 排序字段{"field":"updateTime","sort":"acs"}
     */
    private Map<String,String> sortMap;


    public CompetitorAnalysisListDTO() {
        this.page = 1;
        this.pageSize = 20;
    }
}
